from selenium import webdriver
import time
from selenium.webdriver.common.by import By

dr = webdriver.Chrome()
dr.get("file:///C:/Users/Administrator/Desktop/自动化测试网页/自动化测试网页/注册A.html")
dr.maximize_window()
time.sleep(2)
# 隐式等待
dr.implicitly_wait(5)
print("开始时间：",time.strftime("%H:%M:%S"))
dr.find_element(By.XPATH,"/html/body/div/div[2]/div[1]/input[1]")
print("第一个元素出现：",time.strftime("%H:%M:%S"))
dr.find_element(By.XPATH,"/html/body/div/div[2]/div[1]/input[2]")
print("第二个元素出现：",time.strftime("%H:%M:%S"))
time.sleep(2)
dr.quit()